<%@include file="/layout/header.jspf"%>

<%
	String action = request.getParameter("action");
	request.setAttribute("action", action);
%>

<h1>Add/Edit user</h1>
<form action="../ManageUserServlet?action=${action}" method="post">
	<table>
		<tr>
			<td>Username:</td>
			<td><input name="username" type="text" /></td>
		</tr>
		<tr>
			<td>Password:</td>
			<td><input name="password" type="password" /></td>
		</tr>
		<tr>
			<td>Verify password:</td>
			<td><input name="verifyPassword" type="password" /></td>
		</tr>
		<tr>
			<td>E-mail:</td>
			<td><input name="email" type="email" /></td>
		</tr>
		<tr>
			<td>First name:</td>
			<td><input name="firstName" type="text" /></td>
		</tr>
		<tr>
			<td>Last name:</td>
			<td><input name="lastName" type="text" /></td>
		</tr>
		<tr>
			<td>Role:</td>
			<td><select name="role" style="width: 150px;">
					<option value="waiter">waiter</option>
					<option value="barman">barman</option>
					<option value="manager">manager</option>
			</select></td>
		</tr>
		<tr>
			<td colspan="2"><input type="submit" value="Save User" /></td>
		</tr>
	</table>
</form>

<%@include file="/layout/footer.jspf"%>
